package com.yishun.springboot.web;

import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.yishun.springboot.mapper.TspDetailedMapper;
import com.yishun.springboot.pojo.GeneralRecordNumBeans;
import com.yishun.springboot.pojo.LayminiBaseInfoReturnBeans;
import com.yishun.springboot.pojo.TspHaveDevCode;
import com.yishun.springboot.pojo.UploadGWSAddTeam;
import com.yishun.springboot.service.LayminiCAYService;
import com.yishun.springboot.service.LayminiGWSService;

import lombok.extern.slf4j.Slf4j;

import com.yishun.springboot.service.GongWuSuTimedUploadTspService;

/**
 * 测试城安院 1231注释，正常使用情况请上班后立即还原取消注释
 * 
 * @author YS
 *
 */
@Controller
@RequestMapping("")
@Slf4j
public class TestController {

	private static final Logger logger = LoggerFactory.getLogger(TestController.class);

	// 按项目查询监督工程信息
	@ResponseBody
	@PostMapping("t")
	public JSONObject ele_info(@RequestBody JSONObject jsonObject) throws Exception {
		logger.info("--------------------------------记录方法info");
		logger.warn("--------------------------------记录方法warn");
		logger.error("--------------------------------记录方法error");
		logger.debug("--------------------------------记录方法debug");
		jsonObject.put("results", "this results");
		log.info(jsonObject.toJSONString());
		return jsonObject;

	}

}